/**
 *
 */
package soa.security.jpa.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import soa.security.jpa.domain.Change;
import v1.core.repository.support.V1Repository;

/**
 * @author Cre.Gu
 *
 *
 */
public interface ChangeRepository extends V1Repository<Change> {

	@Query("select c from Change c where c.organizationId = ?1 and c.deleted = false "
			+ "order by c.type , c.bid")
	public List<Change> findByOrganizationId(String organizationId);

	public Change findByOrganizationIdAndDn(String organizationId, String dn);
}
